home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / a2.0bemacs-src.lha / Emacs-19.25 / lisp / yow.elc < prev   
Emacs Compiled Lisp  |  1994-04-27  |  1.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 57 65 64 20 | 41 70 72 20 32 37 20 30 | on Wed |Apr 27 0|
|00000040| 34 3a 34 33 3a 33 39 20 | 31 39 39 34 0a 3b 3b 3b |4:43:39 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 66 73 66 2f 72 6d 73 | 2f 65 31 39 2f 6c 69 73 |/fsf/rms|/e19/lis|
|00000070| 70 2f 79 6f 77 2e 65 6c | 0a 3b 3b 3b 20 65 6d 61 |p/yow.el|.;;; ema|
|00000080| 63 73 20 76 65 72 73 69 | 6f 6e 20 31 39 2e 32 32 |cs versi|on 19.22|
|00000090| 2e 39 30 2e 31 31 2e 0a | 3b 3b 3b 20 62 79 74 65 |.90.11..|;;; byte|
|000000a0| 63 6f 6d 70 20 76 65 72 | 73 69 6f 6e 20 46 53 46 |comp ver|sion FSF|
|000000b0| 20 32 2e 31 30 0a 3b 3b | 3b 20 6f 70 74 69 6d 69 | 2.10.;;|; optimi|
|000000c0| 7a 61 74 69 6f 6e 20 69 | 73 20 6f 6e 2e 0a 3b 3b |zation i|s on..;;|
|000000d0| 3b 20 74 68 69 73 20 66 | 69 6c 65 20 75 73 65 73 |; this f|ile uses|
|000000e0| 20 6f 70 63 6f 64 65 73 | 20 77 68 69 63 68 20 64 | opcodes| which d|
|000000f0| 6f 20 6e 6f 74 20 65 78 | 69 73 74 20 69 6e 20 45 |o not ex|ist in E|
|00000100| 6d 61 63 73 20 31 38 2e | 0a 0a 28 69 66 20 28 61 |macs 18.|..(if (a|
|00000110| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 6d 61 63 |nd (boun|dp 'emac|
|00000120| 73 2d 76 65 72 73 69 6f | 6e 29 0a 09 20 28 6f 72 |s-versio|n).. (or|
|00000130| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000140| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 20 65 |poch::ve|rsion) e|
|00000150| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 0a 09 |poch::ve|rsion)..|
|00000160| 20 20 20 20 20 28 73 74 | 72 69 6e 67 2d 6c 65 73 | (st|ring-les|
|00000170| 73 70 20 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |sp emacs|-version|
|00000180| 20 22 31 39 22 29 29 29 | 0a 20 20 20 20 28 65 72 | "19")))|. (er|
|00000190| 72 6f 72 20 22 60 2f 68 | 6f 6d 65 2f 66 73 66 2f |ror "`/h|ome/fsf/|
|000001a0| 72 6d 73 2f 65 31 39 2f | 6c 69 73 70 2f 79 6f 77 |rms/e19/|lisp/yow|
|000001b0| 2e 65 6c 27 20 77 61 73 | 20 63 6f 6d 70 69 6c 65 |.el' was| compile|
|000001c0| 64 20 66 6f 72 20 45 6d | 61 63 73 20 31 39 22 29 |d for Em|acs 19")|
|000001d0| 29 0a 0a 28 72 65 71 75 | 69 72 65 20 28 71 75 6f |)..(requ|ire (quo|
|000001e0| 74 65 20 63 6f 6f 6b 69 | 65 31 29 29 0a 28 64 65 |te cooki|e1)).(de|
|000001f0| 66 76 61 72 20 79 6f 77 | 2d 66 69 6c 65 20 28 63 |fvar yow|-file (c|
|00000200| 6f 6e 63 61 74 20 64 61 | 74 61 2d 64 69 72 65 63 |oncat da|ta-direc|
|00000210| 74 6f 72 79 20 22 79 6f | 77 2e 6c 69 6e 65 73 22 |tory "yo|w.lines"|
|00000220| 29 20 22 5c 0a 46 69 6c | 65 20 63 6f 6e 74 61 69 |) "\.Fil|e contai|
|00000230| 6e 69 6e 67 20 70 65 72 | 74 69 6e 65 6e 74 20 70 |ning per|tinent p|
|00000240| 69 6e 68 65 61 64 20 70 | 68 72 61 73 65 73 2e 22 |inhead p|hrases."|
|00000250| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 79 6f 77 |).(defal|ias 'yow|
|00000260| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 69 6e | #[(&opt|ional in|
|00000270| 73 65 72 74 29 20 22 c0 | 09 c2 c3 23 1c 0d 83 0f |sert) ".|...#....|
|00000280| 00 5c 66 63 82 35 00 74 | 84 17 00 5c 66 82 35 00 |.\fc.5.t|...\f.5.|
|00000290| c6 c7 5c 66 5c 22 84 2b | 00 c8 c9 ca 21 21 88 cb |..\f\".+|....!!..|
|000002a0| cc 5c 66 5c 22 82 35 00 | cb cd 21 88 ca 90 ce 5c |.\f\".5.|..!....\|
|000002b0| 66 21 91 29 87 22 20 5b | 63 6f 6f 6b 69 65 20 79 |f!.)." [|cookie y|
|000002c0| 6f 77 2d 66 69 6c 65 20 | 22 41 6d 20 49 20 43 4f |ow-file |"Am I CO|
|000002d0| 4e 53 49 4e 47 20 79 65 | 74 3f 2e 2e 2e 22 20 22 |NSING ye|t?..." "|
|000002e0| 49 20 68 61 76 65 20 53 | 45 45 4e 20 74 68 65 20 |I have S|EEN the |
|000002f0| 43 4f 4e 53 49 4e 47 21 | 21 22 20 79 6f 77 20 69 |CONSING!|!" yow i|
|00000300| 6e 73 65 72 74 20 73 74 | 72 69 6e 67 2d 6d 61 74 |nsert st|ring-mat|
|00000310| 63 68 20 22 5c 6e 22 20 | 64 65 6c 65 74 65 2d 77 |ch "\n" |delete-w|
|00000320| 69 6e 64 6f 77 73 2d 6f | 6e 20 67 65 74 2d 62 75 |indows-o|n get-bu|
|00000330| 66 66 65 72 2d 63 72 65 | 61 74 65 20 22 2a 48 65 |ffer-cre|ate "*He|
|00000340| 6c 70 2a 22 20 6d 65 73 | 73 61 67 65 20 22 25 73 |lp*" mes|sage "%s|
|00000350| 22 20 22 59 6f 77 21 22 | 20 70 72 69 6e 63 5d 20 |" "Yow!"| princ] |
|00000360| 34 20 22 5c 0a 52 65 74 | 75 72 6e 20 6f 72 20 64 |4 "\.Ret|urn or d|
|00000370| 69 73 70 6c 61 79 20 61 | 20 72 61 6e 64 6f 6d 20 |isplay a| random |
|00000380| 5a 69 70 70 79 20 71 75 | 6f 74 61 74 69 6f 6e 2e |Zippy qu|otation.|
|00000390| 20 20 57 69 74 68 20 70 | 72 65 66 69 78 20 61 72 | With p|refix ar|
|000003a0| 67 2c 20 69 6e 73 65 72 | 74 20 69 74 2e 22 20 22 |g, inser|t it." "|
|000003b0| 50 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |P"]).(de|falias '|
|000003c0| 72 65 61 64 2d 7a 69 70 | 70 79 69 73 6d 20 23 5b |read-zip|pyism #[|
|000003d0| 28 70 72 6f 6d 70 74 20 | 26 6f 70 74 69 6f 6e 61 |(prompt |&optiona|
|000003e0| 6c 20 72 65 71 75 69 72 | 65 2d 6d 61 74 63 68 29 |l requir|e-match)|
|000003f0| 20 22 c0 09 5c 6e c3 c4 | 0d 25 87 22 20 5b 72 65 | "..\n..|.%." [re|
|00000400| 61 64 2d 63 6f 6f 6b 69 | 65 20 70 72 6f 6d 70 74 |ad-cooki|e prompt|
|00000410| 20 79 6f 77 2d 66 69 6c | 65 20 22 41 6d 20 49 20 | yow-fil|e "Am I |
|00000420| 43 4f 4e 53 49 4e 47 20 | 79 65 74 3f 2e 2e 2e 22 |CONSING |yet?..."|
|00000430| 20 22 49 20 68 61 76 65 | 20 53 45 45 4e 20 74 68 | "I have| SEEN th|
|00000440| 65 20 43 4f 4e 53 49 4e | 47 21 21 22 20 72 65 71 |e CONSIN|G!!" req|
|00000450| 75 69 72 65 2d 6d 61 74 | 63 68 5d 20 36 20 22 5c |uire-mat|ch] 6 "\|
|00000460| 0a 52 65 61 64 20 61 20 | 5a 69 70 70 79 69 73 6d |.Read a |Zippyism|
|00000470| 20 66 72 6f 6d 20 74 68 | 65 20 6d 69 6e 69 62 75 | from th|e minibu|
|00000480| 66 66 65 72 20 77 69 74 | 68 20 63 6f 6d 70 6c 65 |ffer wit|h comple|
|00000490| 74 69 6f 6e 2c 20 70 72 | 6f 6d 70 74 69 6e 67 20 |tion, pr|ompting |
|000004a0| 77 69 74 68 20 50 52 4f | 4d 50 54 2e 0a 49 66 20 |with PRO|MPT..If |
|000004b0| 6f 70 74 69 6f 6e 61 6c | 20 73 65 63 6f 6e 64 20 |optional| second |
|000004c0| 61 72 67 20 69 73 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |arg is n|on-nil, |
|000004d0| 72 65 71 75 69 72 65 20 | 69 6e 70 75 74 20 74 6f |require |input to|
|000004e0| 20 6d 61 74 63 68 20 61 | 20 63 6f 6d 70 6c 65 74 | match a| complet|
|000004f0| 69 6f 6e 2e 22 5d 29 0a | 28 70 75 74 20 28 71 75 |ion."]).|(put (qu|
|00000500| 6f 74 65 20 72 65 61 64 | 2d 7a 69 70 70 79 69 73 |ote read|-zippyis|
|00000510| 6d 29 20 28 71 75 6f 74 | 65 20 62 79 74 65 2d 6f |m) (quot|e byte-o|
|00000520| 70 74 69 6d 69 7a 65 72 | 29 20 28 71 75 6f 74 65 |ptimizer|) (quote|
|00000530| 20 62 79 74 65 2d 63 6f | 6d 70 69 6c 65 2d 69 6e | byte-co|mpile-in|
|00000540| 6c 69 6e 65 2d 65 78 70 | 61 6e 64 29 29 0a 28 64 |line-exp|and)).(d|
|00000550| 65 66 61 6c 69 61 73 20 | 27 69 6e 73 65 72 74 2d |efalias |'insert-|
|00000560| 7a 69 70 70 79 69 73 6d | 20 23 5b 28 26 6f 70 74 |zippyism| #[(&opt|
|00000570| 69 6f 6e 61 6c 20 7a 69 | 70 70 79 69 73 6d 29 20 |ional zi|ppyism) |
|00000580| 22 08 63 87 22 20 5b 7a | 69 70 70 79 69 73 6d 5d |".c." [z|ippyism]|
|00000590| 20 31 20 22 5c 0a 50 72 | 6f 6d 70 74 20 77 69 74 | 1 "\.Pr|ompt wit|
|000005a0| 68 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 66 6f 72 |h comple|tion for|
|000005b0| 20 61 20 6b 6e 6f 77 6e | 20 5a 69 70 70 79 20 71 | a known| Zippy q|
|000005c0| 75 6f 74 61 74 69 6f 6e | 2c 20 61 6e 64 20 69 6e |uotation|, and in|
|000005d0| 73 65 72 74 20 69 74 20 | 61 74 20 70 6f 69 6e 74 |sert it |at point|
|000005e0| 2e 22 20 28 6c 69 73 74 | 20 28 72 65 61 64 2d 7a |." (list| (read-z|
|000005f0| 69 70 70 79 69 73 6d 20 | 22 50 69 6e 68 65 61 64 |ippyism |"Pinhead|
|00000600| 20 77 69 73 64 6f 6d 3a | 20 22 20 74 29 29 5d 29 | wisdom:| " t))])|
|00000610| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 70 73 79 63 |.(defali|as 'psyc|
|00000620| 68 6f 61 6e 61 6c 79 7a | 65 2d 70 69 6e 68 65 61 |hoanalyz|e-pinhea|
|00000630| 64 20 23 5b 6e 69 6c 20 | 22 c0 20 88 c1 c2 21 88 |d #[nil |". ...!.|
|00000640| c3 c4 21 88 c5 c6 21 88 | c7 20 3f 85 29 00 c8 c9 |..!...!.|. ?.)...|
|00000650| 20 21 88 c5 c6 21 88 ca | cb 21 88 ca cb 21 88 82 | !...!..|.!...!..|
|00000660| 0f 00 87 22 20 5b 64 6f | 63 74 6f 72 20 6d 65 73 |..." [do|ctor mes|
|00000670| 73 61 67 65 20 22 22 20 | 73 77 69 74 63 68 2d 74 |sage "" |switch-t|
|00000680| 6f 2d 62 75 66 66 65 72 | 20 22 2a 64 6f 63 74 6f |o-buffer| "*docto|
|00000690| 72 2a 22 20 73 69 74 2d | 66 6f 72 20 30 20 69 6e |r*" sit-|for 0 in|
|000006a0| 70 75 74 2d 70 65 6e 64 | 69 6e 67 2d 70 20 69 6e |put-pend|ing-p in|
|000006b0| 73 65 72 74 2d 73 74 72 | 69 6e 67 20 79 6f 77 20 |sert-str|ing yow |
|000006c0| 64 6f 63 74 6f 72 2d 72 | 65 74 2d 6f 72 2d 72 65 |doctor-r|et-or-re|
|000006d0| 61 64 20 31 5d 20 32 20 | 22 5c 0a 5a 69 70 70 79 |ad 1] 2 |"\.Zippy|
|000006e0| 20 67 6f 65 73 20 74 6f | 20 74 68 65 20 61 6e 61 | goes to| the ana|
|000006f0| 6c 79 73 74 2e 22 20 6e | 69 6c 5d 29 0a 28 70 72 |lyst." n|il]).(pr|
|00000700| 6f 76 69 64 65 20 28 71 | 75 6f 74 65 20 79 6f 77 |ovide (q|uote yow|
|00000710| 29 29 0a | |)). | |
+--------+-------------------------+-------------------------+--------+--------+